<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>ζั͡ޓއއއ๓天泽♬</title>

		<!-- Bootstrap -->
		<link rel="stylesheet" href="Frame/bootstrap-3.3.0/dist/css/bootstrap.min.css">
		<link rel="stylesheet" href="Frame/font-awesome-4.7.0/css/font-awesome.min.css">
		<link rel="stylesheet" href="css/isotope.css" media="screen" />
		<link rel="stylesheet" href="css/animate.css">
		<link rel="stylesheet" href="js/fancybox/jquery.fancybox.css" media="screen" />
		<link rel="stylesheet" href="css/style.css">
		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
		<style type="text/css">
			#kaluo {
				border: 0px solid
			}
			
			#kaluo {
				text-align: center;
			}
			
			#kaluo .cb {
				clear: both;
			}
			
			#kaluo i {
				display: block;
			}
			
			#kaluo #demo {
				width: 1300px;
				height: 600px;
				margin: 0 auto;
			}
			
			#kaluo #demo div,
			#kaluo #demo button {
				width: 320px;
				height: 190px;
				float: left;
				line-height: 100px;
				color: #17f;
				font-size: 32px;
				font-weight: bold;
				position: relative;
			}
			
			#kaluo #demo button {
				background: url(image/1-1.jpg) no-repeat 0 0;
				display: block;
				border: none;
				border-radius: 50%
			}
			
			#kaluo #demo>div>img {
				margin-top: 20px;
			}
			
			#kaluo #demo p {
				width: 280px;
				height: 150px;
				/*background-color: #00FFFF;*/
				position: absolute;
				top: 20px;
				left: 20px;
			}
		</style>
	</head>

	<body>
		<header id="hader">
			<nav div class="navbar navbar-default navbar-static-top" role="navigation">
				<div class="container">
					<ul class="social-network">
						<li>
							<a href="#" data-placement="top" title="weixin"><i class="fa fa-weixin fa-1x"></i></a>
						</li>
						<li>
							<a href="#" data-placement="top" title="weibo"><i class="fa fa-weibo fa-1x"></i></a>
						</li>
						<li>
							<a href="#" data-placement="top" title="apple"><i class="fa fa-apple fa-1x"></i></a>
						</li>
						<li>
							<a href="#" data-placement="top" title="tencent-weibo"><i class="fa fa-tencent-weibo fa-1x"></i></a>
						</li>
					</ul>
					<ul class="info">
						<li>
							<p><i class="fa fa-phone-square"></i>176-0087-7110</p>
						</li>
						<li>
							<p><i class="fa fa-qq "></i>5 7 6 7 9 2 2 5 7</p>
						</li>
					</ul>
				</div>
			</nav>

			<nav class="navbar navbar-default navbar-static-top" role="navigation">
				<div class="navigation">
					<div class="container">
						<div class="navbar-header">
							<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse.collapse">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
							<div class="navbar-brand">
								<a href="index.html">
									<h1>☆天<span><i class="fa fa-bolt"></i></span>泽☆</h1></a>
							</div>
						</div>

						<div class="navbar-collapse collapse">
							<div class="menu" id="menu">
								<ul class="nav nav-tabs" role="tablist">
									<li role="presentation">
										<a href="index.html"><strong>首&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;页</strong></a>
									</li>
									<li role="presentation">
										<a href="services.html"><strong>燃放烟花</strong></a>
									</li>
									<li role="presentation">
										<a href="luckdraw.html"  class="active"><strong>抽奖专区</strong></a>
									</li>
									<li role="presentation">
										<a href="#"><strong>红包专区</strong></a>
									</li>
									<li role="presentation">
										<a href="#"><strong>关于我们</strong></a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</nav>
		</header>

		<div id="kaluo">
			<h2 class='tex'>欢迎来到卡罗牌</h2>
			<div id="demo">
				<div ite='0' vl='1元'><img src="image/2.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='1' vl='2元'><img src="image/7.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='2' vl='5元'><img src="image/6.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='3' vl='10元'><img src="image/5.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='9' vl='范冰冰'><img src="image/liu.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>

				<button onclick="go()" ><h2><strong>开</strong></h2></button>
				<button onclick="end()"><h2><strong>停</strong></h2></button>

				<div ite='4' vl='刘亦菲'><img src="image/13.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='8' vl='1000元红包'><img src="image/1000.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='7' vl='20元'><img src="image/20.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='6' vl='100元'><img src="image/4.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<div ite='5' vl='50元'><img src="image/1.jpg">
					<p><img src="image/1111.jpg"></p>
				</div>
				<i class="cb"></i>
			</div>
		</div>

		<footer id="footer">
			<div class="inner-footer">
				<div class="container">
					<div class="row">
						<div class="col-md-4 f-about">
							<a href="index.html">
								<h1>☆天<span><i class="fa fa-bolt"></i></span>泽☆</h1></a>
							<p>
								不想缺席你的未来，因为已经错过你的曾经;</br>
								你摇了摇头说不爱了，像极了妓女说不卖了;</br>
								选择题最难过的不是选错，而是曾经选对过;</br>
								哪有无缘无故的点赞还不是想被你多看一眼;</br>
							</p>

						</div>
						<div class="col-md-4 l-posts">
							<h3 class="widgetheading">Latest Posts</h3>
							<ul>
								<li>
									<a href="#">This is awesome post title</a>
								</li>
								<li>
									<a href="#">Awesome features are awesome</a>
								</li>
								<li>
									<a href="#">Create your own awesome website</a>
								</li>
							</ul>
						</div>
						<div class="col-md-4 f-contact">
							<h3 class="widgetheading">Stay in touch</h3>
							<a href="#">
								<p><i class="fa fa-envelope"></i>576792257@QQ.com</p>
							</a>
							<p><i class="fa fa-phone"></i> 176 0087 7110</p>
							<p><i class="fa fa-home"></i> 感谢一路（16）有你★期待一起（17）同行</p>
						</div>
					</div>
				</div>
			</div>

			<div class="last-div">
				<div class="container">
					<div class="row">
						<p style="text-align: center;">
							<a href="#">关于我们</a> |
							<a href="#">意见反馈</a> |
							<a href="#">友情链接</a> |
							<a href="#">免责声明</a> |
							<a href="#">网站统计</a>
						</p>
						<p style="text-align: center;">Copyright © 2016 TSZ . All Rights Reserved</p>
						<p style="text-align: center;">国妓宠爷★天泽 版权所有</p>

						<div class="clear"></div>
					</div>
				</div>
				<a href="" class="scrollup"><i class="fa fa-chevron-up"></i></a>
			</div>
		</footer>

		<!-- JS -->
		<script src="js/jquery-1.11.1.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/wow.min.js"></script>
		<script src="js/fancybox/jquery.fancybox.pack.js"></script>
		<script src="js/jquery.bxslider.min.js"></script>
		<script src="js/functions.js"></script>

		<script type="text/javascript">
			/*	排序*/
			var a = document.getElementsByTagName('button')[0];
			var b = document.getElementsByTagName('button')[1];
			var node = document.getElementById('demo');
			var d = node.getElementsByTagName('div');
			var p = document.getElementsByTagName('p');
			var arr = [];
			var timer;
			var stop;
			var t = 0;
			var f = 111111;
			var i = 0;
			a.removeAttribute('disabled');
			for(var i = 0; i < d.length; i++) {
				for(var j = 0; j < d.length; j++) {
					if(d[j].getAttribute('ite') == i) {
						arr.push(d[j])
					}
				}
			}
			/*	添加css属性*/
			arr[-1] = arr[9];

			function run() {
				arr[t].style.backgroundColor = 'yellow';
				arr[t - 1].style.backgroundColor = '';
				t++;
				if(t == 10) t = 0;
			}
			/*		开始按钮*/
			function go() {
				for(var i = 0; i < p.length; i++) {
					p[i].style.display = 'block';
				}
				if(timer == null) {
					timer = setInterval(run, 50);
				}
				f = 10000;
				clearInterval(stop);
				b.removeAttribute('disabled');
				/*a.setAttribute('disabled', 'disabled');*/  //只能点击一次

			}
			/*		结束按钮*/
			function end() {
				/*b.setAttribute('disabled', 'disabled');*/ //只能点击一次
				if(f == 10000) {
					setTimeout(function() {
						clearInterval(timer);
						timer = null;
						f = t - 1;

						alert('恭喜迩获得' + arr[f].getAttribute('vl'))
						arr[f].getElementsByTagName('p')[0].style.display = 'none';
					}, 3000);
				}
				if(stop == null) {
					stop = setInterval(suiji, 100);
				}
			}
			/*		随机颜色*/
			function changeColor() {
				var a = Math.floor(Math.random() * 256);
				var b = Math.floor(Math.random() * 256);
				var c = Math.floor(Math.random() * 256);

				var colo = 'rgb(' + a + ',' + b + ',' + c + ')';
				return colo;
			}

			/*获奖动作*/
			function suiji() {
				arr[f].style.backgroundColor = changeColor();
				arr[f].style.transform = ' rotateY(' + i + 'deg)';
				i += 10;
				if(i == 90) {

				}
				if(i > 500) {
					clearInterval(stop)
					i = 0;
					stop = null;
					arr[f].style.transform = ' rotateY(' + 0 + 'deg)';
					a.removeAttribute('disabled');
				}
			}
			/*字幕动画*/
			var tex = document.getElementsByTagName('h2');

			setInterval(function() {
				tex[0].style.color = changeColor();
			}, 500)
			setInterval(function() {
				tex[1].style.color = changeColor();
			}, 1000)
			setInterval(function() {
				tex[2].style.color = changeColor();
			}, 1000)
			setInterval(function() {
				document.getElementById('kaluo').style.borderColor = changeColor();
			}, 1000)
		</script>

	</body>

</html>